<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>考试中心 - 智能学习平台</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap">
    <style>
        :root {
            --primary: #4361ee;
            --primary-light: #4895ef;
            --primary-dark: #3a0ca3;
            --secondary: #7209b7;
            --accent: #f72585;
            --success: #4cc9f0;
            --warning: #f9c74f;
            --danger: #f94144;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', 'Segoe UI', sans-serif;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            color: var(--dark);
            line-height: 1.6;
            min-height: 100vh;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* 头部样式 */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            background-color: rgba(255, 255, 255, 0.95);
            border-radius: 0 0 20px 20px;
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
        }

        .logo-icon {
            color: var(--primary);
            font-size: 2rem;
        }

        .nav-links {
            display: flex;
            gap: 30px;
        }

        .nav-link {
            color: var(--dark);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            position: relative;
        }

        .nav-link:hover {
            color: var(--primary);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: var(--transition);
        }

        .nav-link:hover::after {
            width: 100%;
        }

        .header-buttons {
            display: flex;
            gap: 15px;
        }

        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.95rem;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            box-shadow: 0 4px 14px rgba(67, 97, 238, 0.4);
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(67, 97, 238, 0.5);
        }

        .btn-outline {
            background: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
        }

        .btn-outline:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
        }

        .btn-success {
            background: var(--success);
            color: white;
            box-shadow: 0 4px 14px rgba(76, 201, 240, 0.4);
        }

        .btn-success:hover {
            background: #3ab0d6;
            transform: translateY(-2px);
        }

        .btn-warning {
            background: var(--warning);
            color: var(--dark);
            box-shadow: 0 4px 14px rgba(249, 199, 79, 0.4);
        }

        .btn-warning:hover {
            background: #f7bc3a;
            transform: translateY(-2px);
        }

        /* 页面标题 */
        .page-header {
            margin: 40px 0 30px;
            text-align: center;
        }

        .page-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--dark);
        }

        .page-subtitle {
            font-size: 1.1rem;
            color: var(--gray);
            max-width: 600px;
            margin: 0 auto;
        }

        /* 考试内容 */
        .exam-section {
            margin-bottom: 60px;
        }

        /* 选项卡 */
        .tabs {
            display: flex;
            gap: 5px;
            background: white;
            padding: 10px;
            border-radius: 16px;
            box-shadow: var(--card-shadow);
            margin-bottom: 30px;
            overflow-x: auto;
        }

        .tab {
            padding: 12px 24px;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
            white-space: nowrap;
        }

        .tab.active {
            background: var(--primary);
            color: white;
        }

        .tab:hover:not(.active) {
            background: rgba(67, 97, 238, 0.1);
        }

        /* 考试网格 */
        .exams-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 25px;
        }

        .exam-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            position: relative;
        }

        .exam-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        }

        .exam-header {
            padding: 20px 25px 15px;
            border-bottom: 1px solid #f1f3f4;
            position: relative;
        }

        .exam-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--dark);
        }

        .exam-meta {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin-bottom: 15px;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.9rem;
            color: var(--gray);
        }

        .exam-status {
            position: absolute;
            top: 20px;
            right: 20px;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .status-upcoming {
            background: rgba(76, 201, 240, 0.2);
            color: var(--success);
        }

        .status-ongoing {
            background: rgba(249, 199, 79, 0.2);
            color: var(--warning);
        }

        .status-completed {
            background: rgba(247, 37, 133, 0.2);
            color: var(--accent);
        }

        .exam-body {
            padding: 20px 25px;
        }

        .exam-desc {
            color: var(--gray);
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .exam-progress {
            margin-bottom: 20px;
        }

        .progress-text {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 0.9rem;
            color: var(--gray);
        }

        .progress-bar {
            height: 8px;
            background: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: var(--primary);
            border-radius: 4px;
            width: 0;
            transition: width 1s ease-in-out;
        }

        .exam-footer {
            padding: 15px 25px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid #f1f3f4;
        }

        .exam-time {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            color: var(--dark);
        }

        .time-icon {
            color: var(--primary);
        }

        /* 倒计时 */
        .countdown {
            display: flex;
            gap: 10px;
            margin: 30px 0;
            justify-content: center;
        }

        .countdown-item {
            background: white;
            border-radius: 12px;
            padding: 20px;
            min-width: 80px;
            text-align: center;
            box-shadow: var(--card-shadow);
        }

        .countdown-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 5px;
        }

        .countdown-label {
            font-size: 0.8rem;
            color: var(--gray);
            text-transform: uppercase;
        }

        /* 筛选器 */
        .filters {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }

        .filter-select {
            padding: 12px 16px;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            background: white;
            font-size: 0.95rem;
            cursor: pointer;
            min-width: 160px;
        }

        /* 空状态 */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            background: white;
            border-radius: 16px;
            box-shadow: var(--card-shadow);
            grid-column: 1 / -1;
        }

        .empty-icon {
            font-size: 4rem;
            color: #e2e8f0;
            margin-bottom: 20px;
        }

        .empty-text {
            font-size: 1.2rem;
            color: var(--gray);
            margin-bottom: 30px;
        }

        /* 响应式设计 */
        @media (max-width: 992px) {
            .exams-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
        }

        @media (max-width: 768px) {
            .header {
                flex-direction: column;
                gap: 20px;
                padding: 15px;
            }

            .nav-links {
                flex-wrap: wrap;
                justify-content: center;
            }

            .page-title {
                font-size: 2rem;
            }

            .exam-footer {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }

            .filters {
                flex-direction: column;
            }

            .filter-select {
                width: 100%;
            }
        }

        @media (max-width: 576px) {
            .header-buttons {
                flex-direction: column;
                width: 100%;
            }

            .btn {
                width: 100%;
                justify-content: center;
            }

            .exams-grid {
                grid-template-columns: 1fr;
            }

            .countdown {
                flex-wrap: wrap;
            }

            .countdown-item {
                flex: 1;
                min-width: 60px;
            }

            .countdown-number {
                font-size: 1.5rem;
            }
        }
    </style>
</head>

<body>
    <div class="container">
        <!-- 头部 -->
        <div class="header">
            <a href="index_2.html" class="logo">
                <i class="fas fa-brain logo-icon"></i>
                <span>智学平台</span>
            </a>

            <div class="nav-links">
                <a href="index_2.html" class="nav-link">首页</a>
                <a href="#" class="nav-link">课程</a>
                <a href="#" class="nav-link">题库</a>
                <a href="#" class="nav-link active">考试</a>
                <a href="#" class="nav-link">学习路径</a>
                <a href="#" class="nav-link">关于我们</a>
            </div>

            <div class="header-buttons">
                <button class="btn btn-outline">
                    <i class="fas fa-user"></i>
                    <span>登录</span>
                </button>
                <button class="btn btn-primary">
                    <i class="fas fa-user-plus"></i>
                    <span>注册</span>
                </button>
            </div>
        </div>

        <!-- 页面标题 -->
        <div class="page-header">
            <h1 class="page-title">嵌入式与物联网考试中心</h1>
            <p class="page-subtitle">检验学习成果，获取专业认证，提升职业竞争力</p>
        </div>

        <!-- 考试内容 -->
        <div class="exam-section">
            <!-- 选项卡 -->
            <div class="tabs">
                <div class="tab active">全部考试</div>
                <div class="tab">即将开始</div>
                <div class="tab">进行中</div>
                <div class="tab">已结束</div>
                <div class="tab">我的考试</div>
                <div class="tab">认证考试</div>
            </div>

            <!-- 筛选器 -->
            <div class="filters">
                <select class="filter-select">
                    <option>所有分类</option>
                    <option>C语言基础</option>
                    <option>单片机开发</option>
                    <option>嵌入式系统</option>
                    <option>物联网应用</option>
                </select>
                <select class="filter-select">
                    <option>所有难度</option>
                    <option>初级</option>
                    <option>中级</option>
                    <option>高级</option>
                </select>
                <select class="filter-select">
                    <option>排序方式: 默认</option>
                    <option>时间: 最近优先</option>
                    <option>时间: 最远优先</option>
                    <option>热度: 最高优先</option>
                </select>
            </div>

            <!-- 考试网格 -->
            <div class="exams-grid">
                <!-- 考试1 -->
                <div class="exam-card">
                    <div class="exam-header">
                        <h3 class="exam-title">C语言程序设计认证考试</h3>
                        <div class="exam-meta">
                            <span class="meta-item"><i class="fas fa-book"></i> 嵌入式基础</span>
                            <span class="meta-item"><i class="fas fa-clock"></i> 120分钟</span>
                            <span class="meta-item"><i class="fas fa-question-circle"></i> 50题</span>
                        </div>
                        <span class="exam-status status-upcoming">即将开始</span>
                    </div>
                    <div class="exam-body">
                        <p class="exam-desc">测试C语言编程能力，包括指针、数据结构、内存管理等核心概念，适合嵌入式开发初学者。</p>
                        <div class="exam-progress">
                            <div class="progress-text">
                                <span>报名进度</span>
                                <span>65%</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill" style="width: 65%"></div>
                            </div>
                        </div>
                    </div>
                    <div class="exam-footer">
                        <div class="exam-time">
                            <i class="fas fa-hourglass-start time-icon"></i>
                            <span>开始: 2023-12-15 14:00</span>
                        </div>
                        <button class="btn btn-primary">立即报名</button>
                    </div>
                </div>

                <!-- 考试2 -->
                <div class="exam-card">
                    <div class="exam-header">
                        <h3 class="exam-title">STM32嵌入式开发实战考核</h3>
                        <div class="exam-meta">
                            <span class="meta-item"><i class="fas fa-book"></i> 单片机开发</span>
                            <span class="meta-item"><i class="fas fa-clock"></i> 180分钟</span>
                            <span class="meta-item"><i class="fas fa-question-circle"></i> 实操+理论</span>
                        </div>
                        <span class="exam-status status-ongoing">进行中</span>
                    </div>
                    <div class="exam-body">
                        <p class="exam-desc">综合考核STM32开发能力，包括外设驱动、中断处理、RTOS应用等实战技能。</p>
                        <div class="exam-progress">
                            <div class="progress-text">
                                <span>完成进度</span>
                                <span>30%</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill" style="width: 30%"></div>
                            </div>
                        </div>
                    </div>
                    <div class="exam-footer">
                        <div class="exam-time">
                            <i class="fas fa-hourglass-half time-icon"></i>
                            <span>剩余: 02:15:43</span>
                        </div>
                        <button class="btn btn-warning">继续考试</button>
                    </div>
                </div>

                <!-- 考试3 -->
                <div class="exam-card">
                    <div class="exam-header">
                        <h3 class="exam-title">物联网通信协议高级测试</h3>
                        <div class="exam-meta">
                            <span class="meta-item"><i class="fas fa-book"></i> 物联网应用</span>
                            <span class="meta-item"><i class="fas fa-clock"></i> 90分钟</span>
                            <span class="meta-item"><i class="fas fa-question-circle"></i> 35题</span>
                        </div>
                        <span class="exam-status status-completed">已结束</span>
                    </div>
                    <div class="exam-body">
                        <p class="exam-desc">测试对MQTT、CoAP、HTTP等物联网常用通信协议的理解和应用能力。</p>
                        <div class="exam-progress">
                            <div class="progress-text">
                                <span>通过率</span>
                                <span>78%</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill" style="width: 78%"></div>
                            </div>
                        </div>
                    </div>
                    <div class="exam-footer">
                        <div class="exam-time">
                            <i class="fas fa-hourglass-end time-icon"></i>
                            <span>已结束</span>
                        </div>
                        <button class="btn btn-outline">查看结果</button>
                    </div>
                </div>

                <!-- 考试4 -->
                <div class="exam-card">
                    <div class="exam-header">
                        <h3 class="exam-title">FreeRTOS应用开发认证</h3>
                        <div class="exam-meta">
                            <span class="meta-item"><i class="fas fa-book"></i> 实时系统</span>
                            <span class="meta-item"><i class="fas fa-clock"></i> 150分钟</span>
                            <span class="meta-item"><i class="fas fa-question-circle"></i> 45题</span>
                        </div>
                        <span class="exam-status status-upcoming">即将开始</span>
                    </div>
                    <div class="exam-body">
                        <p class="exam-desc">考核FreeRTOS实时操作系统的任务管理、内存管理、中断处理等核心概念和应用能力。</p>
                        <div class="exam-progress">
                            <div class="progress-text">
                                <span>报名进度</span>
                                <span>42%</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill" style="width: 42%"></div>
                            </div>
                        </div>
                    </div>
                    <div class="exam-footer">
                        <div class="exam-time">
                            <i class="fas fa-hourglass-start time-icon"></i>
                            <span>开始: 2023-12-20 10:00</span>
                        </div>
                        <button class="btn btn-primary">立即报名</button>
                    </div>
                </div>

                <!-- 考试5 -->
                <div class="exam-card">
                    <div class="exam-header">
                        <h3 class="exam-title">嵌入式Linux驱动开发考核</h3>
                        <div class="exam-meta">
                            <span class="meta-item"><i class="fas fa-book"></i> 系统开发</span>
                            <span class="meta-item"><i class="fas fa-clock"></i> 240分钟</span>
                            <span class="meta-item"><i class="fas fa-question-circle"></i> 实操项目</span>
                        </div>
                        <span class="exam-status status-ongoing">进行中</span>
                    </div>
                    <div class="exam-body">
                        <p class="exam-desc">实战考核Linux内核模块开发、设备驱动编写、调试技巧等高级嵌入式开发技能。</p>
                        <div class="exam-progress">
                            <div class="progress-text">
                                <span>完成进度</span>
                                <span>15%</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill" style="width: 15%"></div>
                            </div>
                        </div>
                    </div>
                    <div class="exam-footer">
                        <div class="exam-time">
                            <i class="fas fa-hourglass-half time-icon"></i>
                            <span>剩余: 03:45:22</span>
                        </div>
                        <button class="btn btn-warning">继续考试</button>
                    </div>
                </div>

                <!-- 考试6 -->
                <div class="exam-card">
                    <div class="exam-header">
                        <h3 class="exam-title">嵌入式系统设计师模拟考试</h3>
                        <div class="exam-meta">
                            <span class="meta-item"><i class="fas fa-book"></i> 综合能力</span>
                            <span class="meta-item"><i class="fas fa-clock"></i> 210分钟</span>
                            <span class="meta-item"><i class="fas fa-question-circle"></i> 60题</span>
                        </div>
                        <span class="exam-status status-completed">已结束</span>
                    </div>
                    <div class="exam-body">
                        <p class="exam-desc">模拟国家嵌入式系统设计师认证考试，全面检验嵌入式系统设计与开发能力。</p>
                        <div class="exam-progress">
                            <div class="progress-text">
                                <span>平均分</span>
                                <span>82/100</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill" style="width: 82%"></div>
                            </div>
                        </div>
                    </div>
                    <div class="exam-footer">
                        <div class="exam-time">
                            <i class="fas fa-hourglass-end time-icon"></i>
                            <span>已结束</span>
                        </div>
                        <button class="btn btn-outline">查看解析</button>
                    </div>
                </div>
            </div>
        </div>

        <!-- 重要考试倒计时 -->
        <div class="page-header">
            <h2 class="section-title">重要考试倒计时</h2>
            <p class="section-subtitle">嵌入式系统设计师认证考试即将开始，请做好准备</p>
        </div>

        <div class="countdown">
            <div class="countdown-item">
                <div class="countdown-number" id="days">12</div>
                <div class="countdown-label">天</div>
            </div>
            <div class="countdown-item">
                <div class="countdown-number" id="hours">08</div>
                <div class="countdown-label">时</div>
            </div>
            <div class="countdown-item">
                <div class="countdown-number" id="minutes">45</div>
                <div class="countdown-label">分</div>
            </div>
            <div class="countdown-item">
                <div class="countdown-number" id="seconds">30</div>
                <div class="countdown-label">秒</div>
            </div>
        </div>

        <div style="text-align: center; margin-bottom: 60px;">
            <button class="btn btn-primary">
                <i class="fas fa-info-circle"></i>
                <span>查看考试详情</span>
            </button>
        </div>
    </div>

    <script>
        // 简单的交互效果
        document.querySelectorAll('.btn').forEach(button => {
            button.addEventListener('click', function () {
                this.style.transform = 'scale(0.98)';
                setTimeout(() => {
                    this.style.transform = '';
                }, 150);
            });
        });

        // 选项卡切换
        document.querySelectorAll('.tab').forEach(tab => {
            tab.addEventListener('click', function () {
                document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));
                this.classList.add('active');

                // 在实际应用中，这里会根据选项卡切换显示不同的考试内容
                console.log('切换到: ' + this.textContent);
            });
        });

        // 倒计时功能
        function updateCountdown() {
            const now = new Date();
            const targetDate = new Date('2023-12-15T14:00:00');
            const timeRemaining = targetDate - now;

            if (timeRemaining <= 0) {
                document.getElementById('days').textContent = '00';
                document.getElementById('hours').textContent = '00';
                document.getElementById('minutes').textContent = '00';
                document.getElementById('seconds').textContent = '00';
                return;
            }

            const days = Math.floor(timeRemaining / (1000 * 60 * 60 * 24));
            const hours = Math.floor((timeRemaining % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
            const minutes = Math.floor((timeRemaining % (1000 * 60 * 60)) / (1000 * 60));
            const seconds = Math.floor((timeRemaining % (1000 * 60)) / 1000);

            document.getElementById('days').textContent = days.toString().padStart(2, '0');
            document.getElementById('hours').textContent = hours.toString().padStart(2, '0');
            document.getElementById('minutes').textContent = minutes.toString().padStart(2, '0');
            document.getElementById('seconds').textContent = seconds.toString().padStart(2, '0');
        }

        // 初始化倒计时并设置定时更新
        updateCountdown();
        setInterval(updateCountdown, 1000);

        // 进度条动画
        document.querySelectorAll('.progress-fill').forEach(progress => {
            // 模拟延迟加载效果
            setTimeout(() => {
                progress.style.width = progress.style.width;
            }, 500);
        });
    </script>
</body>

</html>